﻿using Pay.DTO;
using Pay.TO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.IService {
    public interface IShopInfoService {

        #region 后台管理
        /// <summary>
        /// 获得商家列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        PagedResult<shop_info_dto_ex> GetShopInfos(ShopInfoQuery query);
        /// <summary>
        /// 根据Id获取商家信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        shop_info_dto_ex GetShopInfoById(long id);
        /// <summary>
        /// 更新商家状态
        /// </summary>
        /// <param name="id"></param>
        /// <param name="status"></param>
        /// <returns></returns>
        int UpdateShopInfoStatus(long id, int status);
        /// <summary>
        /// 更新店铺（红钻交易指向账户）信息
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        bool UpdateShopInfo(shop_info_dto_ex dto);
        #endregion
        /// <summary>
        /// 获取店铺信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        shop_info_dto GetShopById(long id);
        /// <summary>
        /// 保存店铺信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool Save(shop_info_dto model, bool isSupplierPC = false);
        /// <summary>
        /// 获取店铺id
        /// </summary>
        /// <param name="merchantId"></param>
        /// <returns></returns>
        //long GetShop(long productId, string merchant_no);
        /// <summary>
        /// 获取店铺
        /// </summary>
        /// <returns></returns>
        List<shop_info_dto> GetShops();
        long GetShop(long productId, long shopId);

    }
}
